/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package http.rpc;

import jas.http.request.HttpRequest;
import jas.http.response.HttpResponse;

/**
 * Parses parameters from an HTTP request.
 * 
 * @author Asger
 */
public interface RpcHttpFormatter {
    RpcRequest parseRequest(HttpRequest request);
    HttpResponse writeResponse(Object returnValue);
    HttpResponse writeException(Exception ex);
    HttpRequest writeRequest(String objectId, String methodName, Object[] params);
    RpcResponse parseResponse(HttpResponse response);
}
